const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.avatar || '',
  username: state => state.user.userInfo.name || '',
  uid: state => state.user.userInfo.id,
  permission_routes: state => state.permission.permission_routes,
  permission_btn_list: state => state.permission.permission_btn_list,
  config: state => state.settings.config
}
export default getters
